﻿using Emgu.CV;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace es.typescript.plug
{
    public class opencv
    {
        public string Device
        {
            get
            {
                return CvInvoke.UseOpenCL ? "OpenCL:" + Emgu.CV.Ocl.Device.Default.Name : "CPU"; ;
            }
        }


        public Mat imread(string path)
        {
            return CvInvoke.Imread(path);
        }


        public void imshow(string title, Mat mat)
        {
            CvInvoke.Imshow(title, mat);
        }


        public void waitkey()
        {
            CvInvoke.WaitKey();
        }

    }
}
